
package ModelLayer;

import java.util.ArrayList;

/**
 * @author 
 *
 */
public class Salg 
{
	//instance variables
	private int salgId;
	private String datoOprettet;
	private byte antalBilletter; 
	private boolean salgType;
	private Forestilling forestilling;
	private Kunde kunde;
	private ArrayList<Saede> saede;

	// Creates a new instance of Sale 
	public Salg() 
	{
	}

	public Salg(int salgId, String dato, byte billetAntal, boolean salgType, Forestilling f, Kunde k, ArrayList<Saede> s) 
	{
		this.salgId = salgId;
		datoOprettet = dato;
		this.antalBilletter = billetAntal;
		this.salgType = salgType;
		forestilling = f;
		kunde = k;
		this.saede = s;
	}

	public Salg(String datoOprettet, byte antalBilletter, boolean salgType,
			Forestilling forestilling, Kunde kunde, ArrayList<Saede> s) 
	{
		this.datoOprettet = datoOprettet;
		this.antalBilletter = antalBilletter;
		this.salgType = salgType;
		this.forestilling = forestilling;
		this.kunde = kunde;
		this.saede = s;
	}
	public Salg(int salgId) 
	{
		this.salgId = salgId;
	}

	public ArrayList<Saede> getSaede() 
	{
		return saede;
	}

	public void setSaede(ArrayList<Saede> s) 
	{
		this.saede = s;
	}

	//set methods
	public void setSalgId(int salgId)
	{
		this.salgId = salgId;
	}
	public void setDatoOprettet(String datoOprettet)
	{
		this.datoOprettet = datoOprettet;
	}
	public void setBilletAntal(byte billetAntal)
	{
		this.antalBilletter = billetAntal;
	}     
	public void setSalgType(boolean salgType)
	{
		this.salgType = salgType;
	}    	    
	public void setForestilling(Forestilling forestilling)
	{
		this.forestilling = forestilling;
	}
	public void setKunde(Kunde kunde)
	{
		this.kunde = kunde;
	}	   	   

	//get method
	public int getSalgId()
	{
		return salgId;
	}
	public String getDatoOprettet()
	{
		return datoOprettet;
	}
	public byte getBilletAntal()
	{
		return antalBilletter;
	}
	public boolean getSalgType()
	{
		return salgType;
	}
	public Forestilling getForestilling()
	{
		return forestilling;
	}
	public Kunde getKunde()
	{
		return kunde;
	}
}
